// pages/huaLang/huaLang.js

const app = getApp();

Page({

  /**
   * 页面的初始数据
   */

  data: {
    imgheight: ["300rpx","300rpx","900rpx","300rpx","300rpx","300rpx"],
    color: ["black","black","black","black","black"],
    paint: ["https://api.52h5.xyz:3001/pContent/?pId=1",
      "https://api.52h5.xyz:3001/pContent/?pId=2", 
      "https://api.52h5.xyz:3001/pContent/?pId=3", 
      "https://api.52h5.xyz:3001/pContent/?pId=4", 
      "https://api.52h5.xyz:3001/pContent/?pId=5", 
      "https://api.52h5.xyz:3001/pContent/?pId=6"],
    text: ["", "", "", "", "", ""],
    patbtn: ["block","block","block","block","block","block"],
    btn: "none",
    btnClick: [], 
    btntop: []
  },

  // 书案画廊点击样式及跳转
  clickshu: function(){
    wx.switchTab({
      url: '/pages/home/home',
    })
  },

  //画作分类
    //流派
  tohuang:function(){
    wx.navigateTo({
      url: `/pages/schools/schools?from=huang`,
    })
  },
  toxv:function(){
    wx.navigateTo({
      url: `/pages/schools/schools?from=xv`,
    })
  },
  toling:function(){
    wx.navigateTo({
      url: `/pages/schools/schools?from=ling`,
    })
  },
  toyuan:function(){
    wx.navigateTo({
      url: `/pages/schools/schools?from=yuan`,
    })
  },
  schoolsclick: function(){
    var temp = this.data.color;
    for(var i=0; i<5; i++){
      temp[i] = "black";
      if(i == 0){
        temp[i] = "#6BA9A0";
      }
    }
    this.setData({
      btn: "flex",
      color: temp,
    })
    var paints = [];
    var schools = [];
    var height = [];
    var top = [];
    var btnclick = [];
    wx.request({
      url: `${app.globalData.url}/painting/?pSchools=黄派`,
      success: res=>{
        var id = res.data.data[0].pId;
        paints.push(`${app.globalData.url}/pContent/?pId=${id}`);
        schools.push("黄派");
        height.push("350rpx");
        top.push("75rpx");
        btnclick.push("tohuang");
        this.setData({
          paint: paints,
          text: schools,
          imgheight: height,
          btntop: top,
          btnClick: btnclick,
          // patbtn: ["block","block","block","block","none","none"]
        })
        console.log(res.data)
      }
    })
    wx.request({
      url: `${app.globalData.url}/painting/?pSchools=岭南派`,
      success: res=>{
        var id = res.data.data[0].pId;
        paints.push(`${app.globalData.url}/pContent/?pId=${id}`);
        schools.push("岭南派");
        height.push("300rpx");
        top.push("40rpx");
        btnclick.push("toling");
        this.setData({
          paint: paints,
          text: schools,
          imgheight: height,
          btntop: top,
          btnClick: btnclick,
          patbtn: ["block","block","block","block","none","none"]
        })
        console.log(res.data)
      }
    })
    wx.request({
      url: `${app.globalData.url}/painting/?pSchools=徐派`,
      success: res=>{
        var id = res.data.data[2].pId;
        paints.push(`${app.globalData.url}/pContent/?pId=${id}`);
        schools.push("徐派");
        height.push("300rpx");
        top.push("40rpx");
        btnclick.push("toxv");
        this.setData({
          paint: paints,
          text: schools,
          imgheight: height,
          btntop: top,
          btnClick: btnclick,
          patbtn: ["block","block","block","block","none","none"]
        })
        console.log(res.data)
      }
    })
    wx.request({
      url: `${app.globalData.url}/painting/?pSchools=元四家`,
      success: res=>{
        var id = res.data.data[1].pId;
        paints.push(`${app.globalData.url}/pContent/?pId=${id}`);
        schools.push("元四家");
        height.push("634rpx");
        top.push("200rpx");
        btnclick.push("toyuan");
        this.setData({
          paint: paints,
          text: schools,
          imgheight: height,
          btntop: top,
          btnClick: btnclick,
          patbtn: ["block","block","block","block","none","none"]
        })
        console.log(res.data)
      }
    })
  },
    //风格
  tomo: function(){
    wx.navigateTo({
      url: '/pages/style/style?from=mo',
    })
  },
  tobi: function(){
    wx.navigateTo({
      url: '/pages/style/style?from=bi',
    })
  },
  styleclick: function(){
    var temp = this.data.color;
    for(var i=0; i<5; i++){
      temp[i] = "black";
      if(i == 1){
        temp[i] = "#6BA9A0";
      }
    }
    this.setData({
      btn: "flex",
      color: temp,
    })
    var paints = [];
    var style = [];
    var height = [];
    var top = [];
    var btnclick = [];
    wx.request({
      url: `${app.globalData.url}/painting/?pStyle=水墨`,
      success: res=>{
        var id = res.data.data[0].pId;
        paints.push(`${app.globalData.url}/pContent/?pId=${id}`);
        style.push("水墨");
        height.push("350rpx");
        top.push("75rpx");
        btnclick.push("tomo")
        this.setData({
          paint: paints,
          text: style,
          imgheight: height,
          btntop: top,
          btnClick: btnclick,
          patbtn: ["block","block","none","none","none","none"]
        })
        console.log(res.data)
      }
    })
    wx.request({
      url: `${app.globalData.url}/painting/?pStyle=工笔`,
      success: res=>{
        var id = res.data.data[0].pId;
        paints.push(`${app.globalData.url}/pContent/?pId=${id}`);
        style.push("工笔");
        height.push("300rpx");
        top.push("40rpx");
        btnclick.push("tobi")
        this.setData({
          paint: paints,
          text: style,
          imgheight: height,
          btntop: top,
          btnClick: btnclick,
          patbtn: ["block","block","none","none","none","none"]
        })
        console.log(res.data)
      }
    })
  },
    //作者
  linliang: function(){
    wx.navigateTo({
      url: "/pages/author/author?from=linliang"
    })
  },
  shenzhou: function(){
    wx.navigateTo({
      url: "/pages/author/author?from=shenzhou"
    })
  },
  huangquan: function(){
    wx.navigateTo({
      url: "/pages/author/author?from=huangquan"
    })
  },
  qiuying: function(){
    wx.navigateTo({
      url: "/pages/author/author?from=qiuying"
    })
  },
  zhangxuan: function(){
    wx.navigateTo({
      url: "/pages/author/author?from=zhangxuan"
    })
  },
  lvji: function(){
    wx.navigateTo({
      url: "/pages/author/author?from=lvji"
    })
  },
  zhoufang:function(){
    wx.navigateTo({
      url: "/pages/author/author?from=zhoufang"
    })
  },
  zhuda:function(){
    wx.navigateTo({
      url: "/pages/author/author?from=zhuda"
    })
  },
  liangkai:function(){
    wx.navigateTo({
      url: "/pages/author/author?from=liangkai"
    })
  },
  gaoyan: function(){
    wx.navigateTo({
      url: "/pages/author/author?from=gaoyan"
    })
  },
  jvchao:function(){
    wx.navigateTo({
      url: "/pages/author/author?from=jvchao"
    })
  },
  xvxi: function(){
    wx.navigateTo({
      url: "/pages/author/author?from=xvxi"
    })
  },
  wenhuiming: function(){
    wx.navigateTo({
      url: "/pages/author/author?from=wenhuiming"
    })
  },
  huanggongwang: function(){
    wx.navigateTo({
      url: "/pages/author/author?from=huanggongwang"
    })
  },
  wangmeng: function(){
    wx.navigateTo({
      url: "/pages/author/author?from=wangmeng"
    })
  },
  wuzhen: function(){
    wx.navigateTo({
      url: "/pages/author/author?from=wuzhen"
    })
  },
  nizan: function(){
    wx.navigateTo({
      url: "/pages/author/author?from=nizan"
    })
  },
  authorclick: function(){
    var temp = this.data.color;
    for(var i=0; i<5; i++){
      temp[i] = "black";
      if(i == 2){
        temp[i] = "#6BA9A0";
      }
    }
    this.setData({
      patbtn: ["block","block","block","block","block","block","block","block","block","block","block","block","block","block","block","block","block"],
      color: temp,
      btn: "flex"
    })
    var paints = [];
    var authors = [];
    var height = [];
    var top = [];
    var btnclick = [];
    wx.request({
      url: `${app.globalData.url}/author/?aName=林良`,
      success: res=>{
        var id = res.data.data.pId[0].pId;
        paints.push(`${app.globalData.url}/pContent/?pId=${id}`);
        authors.push("林良");
        btnclick.push("linliang");
        height.push("300rpx");
        top.push("40rpx");
        console.log("林良",res.data.data);
        this.setData({
          paint: paints,
          text: authors,
          imgheight: height,
          btntop: top,
          btnClick: btnclick
        })
      }
    })
    wx.request({
      url: `${app.globalData.url}/author/?aName=沈周`,
      success: res=>{
        var id = res.data.data.pId[0].pId;
        paints.push(`${app.globalData.url}/pContent/?pId=${id}`);
        authors.push("沈周");
        btnclick.push("shenzhou");
        height.push("300rpx");
        top.push("40rpx");
        console.log("shenzhou",res.data.data);
        this.setData({
          paint: paints,
          text: authors,
          imgheight: height,
          btntop: top,
          btnClick: btnclick
        })
      }
    })
    wx.request({
      url: `${app.globalData.url}/author/?aName=黄筌`,
      success: res=>{
        var id = res.data.data.pId[0].pId;
        paints.push(`${app.globalData.url}/pContent/?pId=${id}`);
        authors.push("黄筌");
        btnclick.push("huangquan");
        height.push("350rpx");
        top.push("75rpx");
        console.log("黄筌",res.data.data);
        this.setData({
          paint: paints,
          text: authors,
          imgheight: height,
          btntop: top,
          btnClick: btnclick
        })
      }
    })
    wx.request({
      url: `${app.globalData.url}/author/?aName=仇英`,
      success: res=>{
        var id = res.data.data.pId[0].pId;
        paints.push(`${app.globalData.url}/pContent/?pId=${id}`);
        authors.push("仇英");
        btnclick.push("qiuying");
        height.push("300rpx");
        top.push("40rpx");
        console.log("仇英",res.data.data);
        this.setData({
          paint: paints,
          text: authors,
          imgheight: height,
          btntop: top,
          btnClick: btnclick
        })
      }
    })
    wx.request({
      url: `${app.globalData.url}/author/?aName=张萱`,
      success: res=>{
        var id = res.data.data.pId[0].pId;
        paints.push(`${app.globalData.url}/pContent/?pId=${id}`);
        authors.push("张萱");
        height.push("300rpx");
        top.push("40rpx");
        btnclick.push("zhangxuan");
        console.log("张萱",res.data.data);
        this.setData({
          paint: paints,
          text: authors,
          imgheight: height,
          btntop: top,
          btnClick: btnclick
        })
      }
    })
    wx.request({
      url: `${app.globalData.url}/author/?aName=吕纪`,
      success: res=>{
        var id = res.data.data.pId[0].pId;
        paints.push(`${app.globalData.url}/pContent/?pId=${id}`);
        authors.push("吕纪");
        height.push("300rpx");
        top.push("40rpx");
        btnclick.push("lvji");
        console.log("吕纪",res.data.data);
        this.setData({
          paint: paints,
          text: authors,
          imgheight: height,
          btntop: top,
          btnClick: btnclick
        })
      }
    })
    wx.request({
      url: `${app.globalData.url}/author/?aName=周昉`,
      success: res=>{
        var id = res.data.data.pId[0].pId;
        paints.push(`${app.globalData.url}/pContent/?pId=${id}`);
        authors.push("周昉");
        height.push("300rpx");
        top.push("40rpx");
        btnclick.push("zhoufang");
        console.log("周昉",res.data.data);
        this.setData({
          paint: paints,
          text: authors,
          imgheight: height,
          btntop: top,
          btnClick: btnclick
        })
      }
    })
    wx.request({
      url: `${app.globalData.url}/author/?aName=朱耷`,
      success: res=>{
        var id = res.data.data.pId[0].pId;
        paints.push(`${app.globalData.url}/pContent/?pId=${id}`);
        authors.push("朱耷");
        height.push("300rpx");
        top.push("40rpx");
        btnclick.push("zhuda");
        console.log("朱耷",res.data.data);
        this.setData({
          paint: paints,
          text: authors,
          imgheight: height,
          btntop: top,
          btnClick: btnclick
        })
      }
    })
    wx.request({
      url: `${app.globalData.url}/author/?aName=梁楷`,
      success: res=>{
        var id = res.data.data.pId[0].pId;
        paints.push(`${app.globalData.url}/pContent/?pId=${id}`);
        authors.push("梁楷");
        height.push("300rpx");
        top.push("40rpx");
        btnclick.push("liangkai");
        console.log("梁楷",res.data.data);
        this.setData({
          paint: paints,
          text: authors,
          imgheight: height,
          btntop: top,
          btnClick: btnclick
        })
      }
    })
    wx.request({
      url: `${app.globalData.url}/author/?aName=高俨`,
      success: res=>{
        var id = res.data.data.pId[0].pId;
        paints.push(`${app.globalData.url}/pContent/?pId=${id}`);
        authors.push("高俨");
        height.push("600rpx");
        top.push("200rpx");
        btnclick.push("gaoyan");
        console.log("高俨",res.data.data);
        this.setData({
          paint: paints,
          text: authors,
          imgheight: height,
          btntop: top,
          btnClick: btnclick
        })
      }
    })
    wx.request({
      url: `${app.globalData.url}/author/?aName=居巢`,
      success: res=>{
        var id = res.data.data.pId[0].pId;
        paints.push(`${app.globalData.url}/pContent/?pId=${id}`);
        authors.push("居巢");
        height.push("850rpx");
        top.push("300rpx");
        btnclick.push("jvchao");
        console.log("居巢",res.data.data);
        this.setData({
          paint: paints,
          text: authors,
          imgheight: height,
          btntop: top,
          btnClick: btnclick
        })
      }
    })
    wx.request({
      url: `${app.globalData.url}/author/?aName=徐熙`,
      success: res=>{
        var id = res.data.data.pId[0].pId;
        paints.push(`${app.globalData.url}/pContent/?pId=${id}`);
        authors.push("徐熙");
        height.push("700rpx");
        top.push("250rpx");
        btnclick.push("xvxi");
        console.log("徐熙",res.data.data);
        this.setData({
          paint: paints,
          text: authors,
          imgheight: height,
          btntop: top,
          btnClick: btnclick
        })
      }
    })
    wx.request({
      url: `${app.globalData.url}/author/?aName=文徵明`,
      success: res=>{
        var id = res.data.data.pId[0].pId;
        paints.push(`${app.globalData.url}/pContent/?pId=${id}`);
        authors.push("文徵明");
        height.push("300rpx");
        top.push("40rpx");
        btnclick.push("wenhuiming");
        console.log("文徵明",res.data.data);
        this.setData({
          paint: paints,
          text: authors,
          imgheight: height,
          btntop: top,
          btnClick: btnclick
        })
      }
    })
    wx.request({
      url: `${app.globalData.url}/author/?aName=黄公望`,
      success: res=>{
        var id = res.data.data.pId[0].pId;
        paints.push(`${app.globalData.url}/pContent/?pId=${id}`);
        authors.push("黄公望");
        height.push("300rpx");
        top.push("40rpx");
        btnclick.push("huanggongwang");
        console.log("黄公望",res.data.data);
        this.setData({
          paint: paints,
          text: authors,
          imgheight: height,
          btntop: top,
          btnClick: btnclick
        })
      }
    })
    wx.request({
      url: `${app.globalData.url}/author/?aName=王蒙`,
      success: res=>{
        var id = res.data.data.pId[0].pId;
        paints.push(`${app.globalData.url}/pContent/?pId=${id}`);
        authors.push("王蒙");
        height.push("650rpx");
        top.push("225rpx");
        btnclick.push("wangmeng");
        console.log("王蒙",res.data.data);
        this.setData({
          paint: paints,
          text: authors,
          imgheight: height,
          btntop: top,
          btnClick: btnclick
        })
      }
    })
    wx.request({
      url: `${app.globalData.url}/author/?aName=吴镇`,
      success: res=>{
        var id = res.data.data.pId[0].pId;
        paints.push(`${app.globalData.url}/pContent/?pId=${id}`);
        authors.push("吴镇");
        height.push("700rpx");
        top.push("250rpx");
        btnclick.push("wuzhen");
        console.log("吴镇",res.data.data);
        this.setData({
          paint: paints,
          text: authors,
          imgheight: height,
          btntop: top,
          btnClick: btnclick
        })
      }
    })
    wx.request({
      url: `${app.globalData.url}/author/?aName=倪瓒`,
      success: res=>{
        var id = res.data.data.pId[0].pId;
        paints.push(`${app.globalData.url}/pContent/?pId=${id}`);
        authors.push("倪瓒");
        height.push("1500rpx");
        top.push("600rpx");
        btnclick.push("nizan");
        console.log("倪瓒",res.data.data);
        this.setData({
          paint: paints,
          text: authors,
          imgheight: height,
          btntop: top,
          btnClick: btnclick
        })
      }
    })
  },
    //主题
  hn: function(){
    wx.navigateTo({
      url: "/pages/theme/theme?from=hn"
    })
  },
  ss: function(){
    wx.navigateTo({
      url: "/pages/theme/theme?from=ss"
    })
  },
  rw: function(){
    wx.navigateTo({
      url: '/pages/theme/theme?from=rw',
    })
  },
  themeclick: function(){
    var temp = this.data.color;
    for(var i=0; i<5; i++){
      temp[i] = "black";
      if(i == 3){
        temp[i] = "#6BA9A0";
      }
    }
    this.setData({
      btn: "flex",
      color: temp,
    })
    var paints = [];
    var theme = [];
    var height = [];
    var top = [];
    var btnclick = [];
    wx.request({
      url: `${app.globalData.url}/painting/?pTheme=花鸟`,
      success: res=>{
        var id = res.data.data[0].pId;
        paints.push(`${app.globalData.url}/pContent/?pId=${id}`);
        theme.push("花鸟");
        height.push("300rpx");
        top.push("40rpx");
        btnclick.push("hn");
        this.setData({
          paint: paints,
          text: theme,
          imgheight: height,
          btntop: top,
          patbtn: ["block","block","block","none","none","none"],
          btnClick: btnclick
        })
      }
    })
    wx.request({
      url: `${app.globalData.url}/painting/?pTheme=人物`,
      success: res=>{
        var id = res.data.data[0].pId;
        paints.push(`${app.globalData.url}/pContent/?pId=${id}`);
        theme.push("人物");
        height.push("300rpx");
        top.push("40rpx");
        btnclick.push("rw")
        this.setData({
          paint: paints,
          text: theme,
          imgheight: height,
          btntop: top,
          patbtn: ["block","block","block","none","none","none"],
          btnClick: btnclick
        })
      }
    })
    wx.request({
      url: `${app.globalData.url}/painting/?pTheme=山水`,
      success: res=>{
        var id = res.data.data[0].pId;
        paints.push(`${app.globalData.url}/pContent/?pId=${id}`);
        theme.push("山水");
        height.push("300rpx");
        top.push("40rpx");
        btnclick.push("ss")
        this.setData({
          paint: paints,
          text: theme,
          imgheight: height,
          btntop: top,
          btnClick: btnclick,
          patbtn: ["block","block","block","none","none","none"]
        })
      }
    })
  },
    //朝代
  song: function(){
    wx.navigateTo({
      url: '/pages/dynasty/dynasty?from=song',
    })
  },
  yuan: function(){
    wx.navigateTo({
      url: '/pages/dynasty/dynasty?from=yuan',
    })
  },
  qing: function(){
    wx.navigateTo({
      url: '/pages/dynasty/dynasty?from=qing',
    })
  },
  mmqc: function(){
    wx.navigateTo({
      url: '/pages/dynasty/dynasty?from=mmqc',
    })
  },
  tang: function(){
    wx.navigateTo({
      url: '/pages/dynasty/dynasty?from=tang',
    })
  },
  ming: function(){
    wx.navigateTo({
      url: '/pages/dynasty/dynasty?from=ming',
    })
  },
  wdsg: function(){
    wx.navigateTo({
      url: '/pages/dynasty/dynasty?from=wdsg',
    })
  },
  dynastyclick: function(){
    var temp = this.data.color;
    for(var i=0; i<5; i++){
      temp[i] = "black";
      if(i == 4){
        temp[i] = "#6BA9A0";
      }
    }
    this.setData({
      btn: "flex",
      color: temp,
      patbtn: ["block","block","block","block","block","block","block"]
    })
    var paints = [];
    var dynasty = [];
    var height = [];
    var top = [];
    var btnclick = [];
    wx.request({
      url: `${app.globalData.url}/painting/?pDynasty=唐代`,
      success: res=>{
        var id = res.data.data[0].pId;
        paints.push(`${app.globalData.url}/pContent/?pId=${id}`);
        dynasty.push("唐朝");
        height.push("300rpx");
        top.push("40rpx");
        btnclick.push("tang");
        this.setData({
          paint: paints,
          text: dynasty,
          imgheight: height,
          btntop: top,
          btnClick: btnclick
        })
        console.log(res.data)
      }
    })
    wx.request({
      url: `${app.globalData.url}/painting/?pDynasty=宋代`,
      success: res=>{
        var id = res.data.data[0].pId;
        paints.push(`${app.globalData.url}/pContent/?pId=${id}`);
        dynasty.push("宋朝");
        height.push("300rpx");
        top.push("40rpx");
        btnclick.push("song");
        this.setData({
          paint: paints,
          text: dynasty,
          imgheight: height,
          btntop: top,
          btnClick: btnclick
        })
        console.log(res.data)
      }
    })
    wx.request({
      url: `${app.globalData.url}/painting/?pDynasty=明代`,
      success: res=>{
        var id = res.data.data[0].pId;
        paints.push(`${app.globalData.url}/pContent/?pId=${id}`);
        dynasty.push("明朝");
        height.push("300rpx");
        top.push("40rpx");
        btnclick.push("ming");
        this.setData({
          paint: paints,
          text: dynasty,
          imgheight: height,
          btntop: top,
          btnClick: btnclick
        })
        console.log(res.data)
      }
    })
    wx.request({
      url: `${app.globalData.url}/painting/?pDynasty=元代`,
      success: res=>{
        var id = res.data.data[1].pId;
        paints.push(`${app.globalData.url}/pContent/?pId=${id}`);
        dynasty.push("元朝");
        height.push("600rpx");
        top.push("200rpx");
        btnclick.push("yuan");
        this.setData({
          paint: paints,
          text: dynasty,
          imgheight: height,
          btntop: top,
          btnClick: btnclick
        })
        console.log(res.data)
      }
    })
    wx.request({
      url: `${app.globalData.url}/painting/?pDynasty=清代`,
      success: res=>{
        var id = res.data.data[0].pId;
        paints.push(`${app.globalData.url}/pContent/?pId=${id}`);
        dynasty.push("清朝");
        height.push("300rpx");
        top.push("40rpx");
        btnclick.push("qing");
        this.setData({
          paint: paints,
          text: dynasty,
          imgheight: height,
          btntop: top,
          btnClick: btnclick
        })
        console.log(res.data)
      }
    })
    wx.request({
      url: `${app.globalData.url}/painting/?pDynasty=明末清初`,
      success: res=>{
        var id = res.data.data[0].pId;
        paints.push(`${app.globalData.url}/pContent/?pId=${id}`);
        dynasty.push("明末清初");
        height.push("600rpx");
        top.push("200rpx");
        btnclick.push("mmqc");
        this.setData({
          paint: paints,
          text: dynasty,
          imgheight: height,
          btntop: top,
          btnClick: btnclick
        })
        console.log(res.data)
      }
    })
    wx.request({
      url: `${app.globalData.url}/painting/?pDynasty=五代十国`,
      success: res=>{
        var id = res.data.data[0].pId;
        paints.push(`${app.globalData.url}/pContent/?pId=${id}`);
        dynasty.push("五代十国");
        height.push("350rpx");
        top.push("60rpx");
        btnclick.push("wdsg");
        this.setData({
          paint: paints,
          text: dynasty,
          imgheight: height,
          btntop: top,
          btnClick: btnclick
        })
        console.log(res.data)
      }
    })
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})